#define _CRT_SECURE_NO_WARNINGS 1

#include <iostream>

using namespace std;

class A {
private:
	int x, y;
public:
	A(int i = 0, int j = 0);
	void print();
	friend A operator++(A& op);
	friend A operator+(A& a, A& b);
};

A::A(int i, int j)
{
	x = i;
	y = j;
}

void A::print()
{
	cout << "x: " << x << ", y: " << y << endl;
}

A operator++(A& op) 
{
	++op.x;
	++op.y;
	return op;
}

A operator+(A& a, A& b)
{
	return A(a.x + b.x, a.y + b.y);
}

int main()
{
	int a = 5;
	const int& b = a;
	a = 3;
}






